MODSIGN: Make shash allocation failure fatal
authorBen Hutchings <ben@decadent.org.uk>
Sun, 5 May 2019 12:45:06 +0000 (13:45 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 19 Jan 2020 09:22:58 +0000 (09:22 +0000)
commite4dc11d941d92a64d4370542ebbd7d541a089531
tree958cd1296cc0354875093635255cd27d6ec66178
parent1b23b6601fb2735802f5920d6e45a43bc3f2fcf2
MODSIGN: Make shash allocation failure fatal

mod_is_hash_blacklisted() currently returns 0 (suceess) if
crypto_alloc_shash() fails.  This should instead be a fatal error,
so unwrap and pass up the error code.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name modsign-make-shash-allocation-failure-fatal.patch
kernel/module_signing.c